<template>
	<view>
		<!-- 选择预收款 -->
		<u-picker :show="message.yushoukuanShow" :columns="columnsyushoukuan" @cancel="yushoukuanconfirm" @confirm="yushoukuanconfirm"
			keyName="account_name"></u-picker>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		name:"selectYushoukuan",
		props:{
			message:{}
		},
		data() {
			return {
				columnsyushoukuan:[]
			};
		},
		mounted() {
			httpRequest.request('appapi/manage/index/accounts', 'POST', {
				account_type_id:4
			}, false, false, true).then(res => {
				this.columnsyushoukuan.push(res.data)
			})
		},
		methods:{
			yushoukuanconfirm(e){
				this.$emit("yushoukuanSure", e);
			}	
		}
		
	}
</script>

<style>

</style>